package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 购物车物品表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-27
 */
@TableName("bus_shop_cart")
public class ShopCart extends Model<ShopCart> {

    private static final long serialVersionUID = 1L;

    /**
     * 购物车物品Id
     */
    @TableId(value = "shop_cart_id", type = IdType.AUTO)
    private Integer shopCartId;
    /**
     * 用户Id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 商品Id
     */
    @TableField("product_id")
    private Integer productId;
    /**
     * 商品名称
     */
    @TableField("product_name")
    private String productName;
    /**
     * 购买时长
     */
    @TableField("pay_time")
    private Integer payTime;
    /**
     * 计费类型(1年;2月)
     */
    @TableField("charge_type")
    private Integer chargeType;
    /**
     * 购买数量
     */
    @TableField("the_count")
    private Integer theCount;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableField("flag")
    @TableLogic
    private Integer flag;


    public Integer getShopCartId() {
        return shopCartId;
    }

    public void setShopCartId(Integer shopCartId) {
        this.shopCartId = shopCartId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getPayTime() {
        return payTime;
    }

    public void setPayTime(Integer payTime) {
        this.payTime = payTime;
    }

    public Integer getChargeType() {
        return chargeType;
    }

    public void setChargeType(Integer chargeType) {
        this.chargeType = chargeType;
    }

    public Integer getTheCount() {
        return theCount;
    }

    public void setTheCount(Integer theCount) {
        this.theCount = theCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.shopCartId;
    }

    @Override
    public String toString() {
        return "ShopCart{" +
                "shopCartId=" + shopCartId +
                ", userId=" + userId +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", payTime=" + payTime +
                ", chargeType=" + chargeType +
                ", theCount=" + theCount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", flag=" + flag +
                '}';
    }
}
